﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="dsExempos" targetNamespace="http://tempuri.org/dsExempos.xsd" xmlns:mstns="http://tempuri.org/dsExempos.xsd" xmlns="http://tempuri.org/dsExempos.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="LinqTestConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="LinqTestConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.LinqToDataSets.Properties.Settings.GlobalReference.Default.LinqTestConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Exemplo1TableAdapter" GeneratorDataComponentClassName="Exemplo1TableAdapter" Name="Exemplo1" UserDataComponentName="Exemplo1TableAdapter">
            <MainSource>
              <DbSource ConnectionRef="LinqTestConnectionString (Settings)" DbObjectName="LinqTest.dbo.Exemplo1" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[Exemplo1] WHERE (([Chave1] = @Original_Chave1) AND ([Designacao1] = @Original_Designacao1) AND ((@IsNull_Valor1 = 1 AND [Valor1] IS NULL) OR ([Valor1] = @Original_Valor1)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Chave1" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Chave1" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Designacao1" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Designacao1" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Valor1" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Valor1" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_Valor1" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="Valor1" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[Exemplo1] ([Chave1], [Designacao1], [Valor1]) VALUES (@Chave1, @Designacao1, @Valor1);
SELECT Chave1, Designacao1, Valor1 FROM Exemplo1 WHERE (Chave1 = @Chave1)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Chave1" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Chave1" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Designacao1" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Designacao1" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Valor1" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="Valor1" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Chave1, Designacao1, Valor1 FROM dbo.Exemplo1</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[Exemplo1] SET [Chave1] = @Chave1, [Designacao1] = @Designacao1, [Valor1] = @Valor1 WHERE (([Chave1] = @Original_Chave1) AND ([Designacao1] = @Original_Designacao1) AND ((@IsNull_Valor1 = 1 AND [Valor1] IS NULL) OR ([Valor1] = @Original_Valor1)));
SELECT Chave1, Designacao1, Valor1 FROM Exemplo1 WHERE (Chave1 = @Chave1)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Chave1" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Chave1" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Designacao1" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Designacao1" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Valor1" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="Valor1" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Chave1" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Chave1" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Designacao1" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Designacao1" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Valor1" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Valor1" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_Valor1" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="Valor1" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Chave1" DataSetColumn="Chave1" />
              <Mapping SourceColumn="Designacao1" DataSetColumn="Designacao1" />
              <Mapping SourceColumn="Valor1" DataSetColumn="Valor1" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ValorTableAdapter" GeneratorDataComponentClassName="ValorTableAdapter" Name="Valor" UserDataComponentName="ValorTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="LinqTestConnectionString (Settings)" DbObjectName="LinqTest.dbo.Valor" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[Valor] WHERE (([Chave1] = @Original_Chave1) AND ((@IsNull_Designacao1 = 1 AND [Designacao1] IS NULL) OR ([Designacao1] = @Original_Designacao1)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_Chave1" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="Chave1" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Designacao1" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Designacao1" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Designacao1" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Designacao1" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[Valor] ([Chave1], [Designacao1]) VALUES (@Chave1, @Designacao1);
SELECT Chave1, Designacao1 FROM Valor WHERE (Chave1 = @Chave1)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Chave1" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="Chave1" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Designacao1" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Designacao1" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Chave1, Designacao1 FROM dbo.Valor</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[Valor] SET [Chave1] = @Chave1, [Designacao1] = @Designacao1 WHERE (([Chave1] = @Original_Chave1) AND ((@IsNull_Designacao1 = 1 AND [Designacao1] IS NULL) OR ([Designacao1] = @Original_Designacao1)));
SELECT Chave1, Designacao1 FROM Valor WHERE (Chave1 = @Chave1)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Chave1" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="Chave1" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Designacao1" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Designacao1" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_Chave1" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="Chave1" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Designacao1" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Designacao1" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Designacao1" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Designacao1" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Chave1" DataSetColumn="Chave1" />
              <Mapping SourceColumn="Designacao1" DataSetColumn="Designacao1" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="dsExempos" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="dsExempos" msprop:Generator_DataSetName="dsExempos" msprop:EnableTableAdapterManager="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Exemplo1" msprop:Generator_UserTableName="Exemplo1" msprop:Generator_RowDeletedName="Exemplo1RowDeleted" msprop:Generator_TableClassName="Exemplo1DataTable" msprop:Generator_RowChangedName="Exemplo1RowChanged" msprop:Generator_RowClassName="Exemplo1Row" msprop:Generator_RowChangingName="Exemplo1RowChanging" msprop:Generator_RowEvArgName="Exemplo1RowChangeEvent" msprop:Generator_RowEvHandlerName="Exemplo1RowChangeEventHandler" msprop:Generator_TablePropName="Exemplo1" msprop:Generator_TableVarName="tableExemplo1" msprop:Generator_RowDeletingName="Exemplo1RowDeleting">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Chave1" msprop:Generator_UserColumnName="Chave1" msprop:Generator_ColumnPropNameInRow="Chave1" msprop:Generator_ColumnVarNameInTable="columnChave1" msprop:Generator_ColumnPropNameInTable="Chave1Column" type="xs:int" />
              <xs:element name="Designacao1" msprop:Generator_UserColumnName="Designacao1" msprop:Generator_ColumnPropNameInRow="Designacao1" msprop:Generator_ColumnVarNameInTable="columnDesignacao1" msprop:Generator_ColumnPropNameInTable="Designacao1Column">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="5000" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Valor1" msprop:Generator_UserColumnName="Valor1" msprop:Generator_ColumnPropNameInRow="Valor1" msprop:Generator_ColumnVarNameInTable="columnValor1" msprop:Generator_ColumnPropNameInTable="Valor1Column" type="xs:decimal" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Valor" msprop:Generator_UserTableName="Valor" msprop:Generator_RowDeletedName="ValorRowDeleted" msprop:Generator_TableClassName="ValorDataTable" msprop:Generator_RowChangedName="ValorRowChanged" msprop:Generator_RowClassName="ValorRow" msprop:Generator_RowChangingName="ValorRowChanging" msprop:Generator_RowEvArgName="ValorRowChangeEvent" msprop:Generator_RowEvHandlerName="ValorRowChangeEventHandler" msprop:Generator_TablePropName="Valor" msprop:Generator_TableVarName="tableValor" msprop:Generator_RowDeletingName="ValorRowDeleting">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Chave1" msprop:Generator_UserColumnName="Chave1" msprop:Generator_ColumnPropNameInRow="Chave1" msprop:Generator_ColumnVarNameInTable="columnChave1" msprop:Generator_ColumnPropNameInTable="Chave1Column" type="xs:decimal" />
              <xs:element name="Designacao1" msprop:Generator_UserColumnName="Designacao1" msprop:Generator_ColumnPropNameInRow="Designacao1" msprop:Generator_ColumnVarNameInTable="columnDesignacao1" msprop:Generator_ColumnPropNameInTable="Designacao1Column" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="5000" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Exemplo1" />
      <xs:field xpath="mstns:Chave1" />
    </xs:unique>
    <xs:unique name="Valor_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Valor" />
      <xs:field xpath="mstns:Chave1" />
    </xs:unique>
  </xs:element>
</xs:schema>